package com.justnow.offer;


import java.util.*;

/**
 * @author justnow
 * Created on 2020-09-13
 * Description
 */
public class Aiqiyi02 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Map<String, Integer> map = new HashMap<>();
        String s = scanner.nextLine();
        String[] s1 = s.split(" ");
        int length = s1.length;
        for (String s2 : s1) {
            if (map.containsKey(s2)) {
                map.put(s2, map.get(s2) + 1);
                continue;
            }
            map.put(s2, 1);
        }
        for (String str : s1) {
            if (map.containsKey(str)) {
                Integer integer1 = map.get(str);
                if (integer1 > (length / 2)) {
                    System.out.println(str);
                    return;
                }
            }
        }
    }
}
